export const state = () => ({
  draftList: []
});

export const mutations = {
  addDraft(state, data) {
    state.draftList.unshift(data);
  },
  // 删除草稿
  removeDraft(state, index) {
    state.draftList.splice(index, 1);
  }
};
